﻿
using Service.src.NW.Enum;
using Service.src.NW.Model.Enum;
using System;

namespace Service.src.NW.Model.Drive
{
    public class DeviceMessageResult
    {
        public DeviceTypeEnum Type { get; set; }

        public dynamic DeiverInstance { get; set; }

        public dynamic ErrorCode { get; set; }

        public string Message { get; set; }

        public DeviceMessageStatusEnum MessageStatus { get; set; }

        public dynamic Data { get; set; }

        public Exception Exce { get; set; }

        public DeviceMessageResult() { }

        public DateTime Date { get; set; } = DateTime.Now;

        public DeviceMessageResult(DeviceTypeEnum deviceType, string Description, dynamic ErrorCode = null, Exception ex =null, dynamic DeiverInstance = null)
        {
            this.Type = deviceType;
            this.Message = Description;
            this.Exce = ex;
            this.ErrorCode = ErrorCode;
            this.DeiverInstance = DeiverInstance;
        }
    }
}
